package com.xy.hms.log;

import org.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;

/**
 * @author xiaye
 * @create 2020-03-11-17:24
 */
public class AfterLog implements AfterReturningAdvice {
    @Override
    public void afterReturning(Object o, Method method, Object[] objects, Object o1) throws Throwable {
        System.out.println(o1.getClass()+"执行了"+method.getName()+"方法，返回了"+o);
    }
}
